local skel = fk.CreateSkill {
  name = "rmt__mumu",
  tags = {Skill.Compulsory},
}

Fk:loadTranslationTable{
  ["rmt__mumu"] = "穆穆",
  [":rmt__mumu"] = "锁定技，当你不因此失去/获得牌后，你摸其中【闪】/【杀】数的牌。",
}

skel:addEffect(fk.AfterCardsMove, {
  anim_type = "drawcard",
  can_trigger = function(self, event, target, player, data)
    if not player:hasSkill(skel.name) then
      return false
    end
    local num = 0
    for _, move in ipairs(data) do
      if move.from == player  then
        for _, info in ipairs(move.moveInfo) do
          if info.fromArea == Card.PlayerHand then
            if Fk:getCardById(info.cardId).trueName == "jink" then
              num = num + 1
            end
          end
        end
      end
      if move.to == player and move.toArea == Card.PlayerHand and move.skillName ~= skel.name then
        for _, info in ipairs(move.moveInfo) do
          if Fk:getCardById(info.cardId).trueName == "slash" then
            num = num + 1
          end
        end
      end
    end
    if num > 0 then
      event:setCostData(self, { num = num })
      return true
    end
  end,
  on_cost = Util.TrueFunc,
  on_use = function(self, event, target, player, data)
    local num = event:getCostData(self).num
    player:drawCards(num, skel.name)
  end,
})



return skel
